package com.dianban.dao;

import com.dianban.entity.FacePayStoreConsumeLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FacePayStoreConsumeLogDao {

    FacePayStoreConsumeLog findById(@Param("id") String id);

    List<FacePayStoreConsumeLog> findList(@Param("userId") Long  userId,@Param("storeId") Long storeId,@Param("type") String type);

    int insert(FacePayStoreConsumeLog facePayStoreConsumeLog);

    List<FacePayStoreConsumeLog> findByParams(@Param("dayBegin") String dayBegin, @Param("dayEnd") String dayEnd, @Param("userId") Long userId, @Param("offlineOrderId") Long offlineOrderId);

    List<FacePayStoreConsumeLog> find(@Param("storeId") Long storeId, @Param("timeBegin") Long timeBegin, @Param("timeEnd") Long timeEnd);
}
